/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果要增加方法请在当前目录下Partial文件夹sale_partner_monthly_staticsController编写
 */
using ATkg.BizAppProject.IServices;
using DGZImp.Core.Controllers.Basic;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace ATkg.BizAppProject.Controllers
{
    [Route("api/sale_partner_monthly_statics")]
    [PermissionTable(Name = "sale_partner_monthly_statics")]
    public partial class sale_partner_monthly_staticsController : ApiBaseController<Isale_partner_monthly_staticsService>
    {
        public sale_partner_monthly_staticsController(Isale_partner_monthly_staticsService service)
        : base(service)
        {
        }
        [HttpGet]

        [AllowAnonymous]
        public async Task<JsonResult> SyncSalePartnerMonthlyStatics()
        {
            var r1 = await Service.SyncSalePartnerMonthlyStatics_KongGang();
            var r2 = await Service.SyncSalePartnerMonthlyStatics_AiKe();
            var r3 = await Service.SyncSalePartnerMonthlyStatics_BeiFang();

            await Service.SyncSalePartnerMonthlyStaticsDeal(r1, r2, r3);
            //return JsonNormal(r3);
            //return Json(r1);
            return Json(new { Success = true });  // 返回一个空的 JSON 响应
        }
    }
}

